import request from './index.js'
export const url = () => {
	// return 'http://792509sg45.zicp.fun/'
	return 'http://localhost:8080/'
}
export const openid = (params) => { //验证token是否存在
	return request({
		url: 'User/openid',
		method: 'get',
		data: params
	})
}
export const UserById = (params) => { //根据uid查询用户信息
	return request({
		url: 'User/UserById',
		method: 'get',
		data: params
	})
}
export const getUserCoent = () => { //获取用户数量
	return request({
		url: 'User/getUserCoent',
		method: 'get'
	})
}
export const updateUserById = (params) => { //根据uid修改用户信息
	return request({
		url: 'User/updateUserById',
		method: 'get',
		data: params
	})
}
export const getActivitiesById = (params) => { //根据uid查询记录历史或是我的收藏
	return request({
		url: 'Activities/getActivitiesById',
		method: 'get',
		data: params
	})
}
export const deleteActivitiesById = (params) => { //根据aid删除我的收藏记录
	return request({
		url: 'Activities/deleteActivitiesById',
		method: 'get',
		data: params
	})
}
export const addActivities = (params) => { //添加历史记录或是我的收藏
	return request({
		url: 'Activities/addActivities',
		method: 'get',
		data: params
	})
}
export const getisActivities = (params) => { //设置默认显示是否收藏
	return request({
		url: 'Activities/getisActivities',
		method: 'get',
		data: params
	})
}
export const delActivities = (params) => { //取消我的收藏
	return request({
		url: 'Activities/delActivities',
		method: 'get',
		data: params
	})
}
export const getAppointmenCoent = (params) => { //获取我的预约数量
	return request({
		url: 'appointment/getAppointmenCoent',
		method: 'get',
		data: params
	})
}
export const addAppointment = (params) => { //添加我的预约
	return request({
		url: 'appointment/addAppointment',
		method: 'get',
		data: params
	})
}
export const showAppointmentBySnameAndUid = (params) => { //根据家政员名称模糊查询我的预约信息
	return request({
		url: 'appointment/showAppointmentBySnameAndUid',
		method: 'get',
		data: params
	})
}
export const showAppointmentByTypeAndUid = (params) => { //根据状态排序
	return request({
		url: 'appointment/showAppointmentByTypeAndUid',
		method: 'get',
		data: params
	})
}
export const getAppointmentById = (params) => { //根据id查询预约信息
	return request({
		url: 'appointment/getAppointmentById',
		method: 'get',
		data: params
	})
}
export const deleteAppointment = (params) => { //删除我的预约
	return request({
		url: 'appointment/deleteAppointment',
		method: 'get',
		data: params
	})
}
export const getDateById = (data) => { //根据id获取日期
	return request({
		url: 'staff/getDateById',
		method: 'get',
		data: data
	})
}
export const getTimeById = (data) => { //根据id获取时间
	return request({
		url: 'staff/getTimeById',
		method: 'get',
		data: data
	})
}
export const showAboutUs = (data) => { //查询关于我们
	return request({
		url: 'state/showAboutUs',
		method: 'get',
		data: data
	})
}
export const updAboutUs = (data) => { //修改关于我们
	return request({
		url: 'state/updAboutUs',
		method: 'get',
		data: data
	})
}
export const Allrank = (data) => { //后台动态排序
	return request({
		url: 'state/Allrank',
		method: 'get',
		data: data
	})
}
export const addPkgState = (data) => { //添加动态
	return request({
		url: 'state/addPkgState',
		method: 'get',
		data: data
	})
}
export const updDynamic = (data) => { //修改动态
	return request({
		url: 'state/updDynamic',
		method: 'get',
		data: data
	})
}
export const updDynamicState = (data) => { //修改动态状态（0启 1停 2首页推荐 3置顶）
	return request({
		url: 'state/updDynamicState',
		method: 'get',
		data: data
	})
}
//根据id查询
export const showstatebyid = (data) => {
	return request({
		url: 'state/showstatebyid',
		method: 'get',
		data: data
	})
}
//显示动态列表
export const showstate = (data) => {
	return request({
		url: 'state/showstate',
		method: 'get',
		data: data
	})
}
//显示搜索动态列表
export const rankstate = (data) => {
	return request({
		url: 'state/rankstatestate',
		method: 'get',
		data: data
	})
}
//添加搜索记录
export const addseek = (data) => {
	return request({
		url: 'search/addseek',
		method: 'get',
		data: data
	})
}
//删除搜索记录
export const delseek = (data) => {
	return request({
		url: 'search/delseek',
		method: 'get',
		data: data
	})
}
//显示搜索记录
export const showseeklist = (data) => {
	return request({
		url: 'search/showseeklist',
		method: 'get',
		data: data
	})
}
//查询从今天开始到月末有没有可以预约并显示红点
export const checkDataForDate = (data) => {
	return request({
		url: 'staff/checkDataForDate',
		method: 'get',
		data: data
	})
}
//修改密码updatpwd
export const updatpwd = (data) => {
	return request({
		url: 'staff/updatpwd',
		method: 'get',
		data: data
	})
}
//显示预约详情showorder
export const showorder = (data) => {
	return request({
		url: 'appointment/showorder',
		method: 'get',
		data: data
	})
}
//根据状态查询bystate
export const bystate = (data) => {
	return request({
		url: 'appointment/bystate',
		method: 'get',
		data: data
	})
}
//搜索查询seekorder
export const seekorder = (data) => {
	return request({
		url: 'appointment/seekorder',
		method: 'get',
		data: data
	})
}

//查询时间time
export const gettiem = (data) => {
	return request({
		url: 'time/gettiem',
		method: 'get',
		data: data
	})
}
//查询时间段showtiem
export const showtiem = (data) => {
	return request({
		url: 'time/showtiem',
		method: 'get',
		data: data
	})
}
//根据id查询日期
export const showdate = (data) => {
	return request({
		url: 'time/showdate',
		method: 'get',
		data: data
	})
} //感觉id查询时间
export const showtiems = (data) => {
	return request({
		url: 'time/showtiems',
		method: 'get',
		data: data
	})
}
//修改状态uptate
export const uptate = (data) => {
	return request({
		url: 'appointment/uptate',
		method: 'get',
		data: data
	})
}
//后台获取用户列表
export const adminGetUser = () => {
	return request({
		url: 'admin/adminGetUser',
		method: 'get'
	})
}
//查询有多少个时间段
export const getperiod = (data) => {
	return request({
		url: 'staff/getperiod',
		method: 'get',
		data: data
	})
}
//查询时间是否有预约
export const gettoday = (data) => {
	return request({
		url: 'staff/gettoday',
		method: 'get',
		data: data
	})
}
//获取家政预约时间
export const getdate = (data) => {
	return request({
		url: 'staff/getdate',
		method: 'get',
		data: data
	})
}
//获取家政预约时间段
export const gettien = (data) => {
	return request({
		url: 'staff/gettien',
		method: 'get',
		data: data
	})
}
//查询家政员列表
export const staffsel = (data) => {
	return request({
		url: 'staff/sellist',
		method: 'get',
		data: data
	})
}
//根据id查询详情
export const getbyid = (data) => {
	return request({
		url: 'staff/getbyid',
		method: 'get',
		data: data
	})
}
//获取详情页面的轮播图片
export const geturlpath = (data) => {
	return request({
		url: 'staff/geturlpath',
		method: 'get',
		data: data
	})
}
//排序接口
export const rank = (data) => {
	return request({
		url: 'staff/rank',
		method: 'get',
		data: data
	})
}
//后台更改用户状态
export const adminUpdateUserState = (data) => {
	return request({
		url: 'admin/adminUpdateUserState',
		method: 'get',
		data: data
	})
}
//后台根据用户id获取数据
export const adminGetUserById = (data) => {
	return request({
		url: 'admin/adminGetUserById',
		method: 'get',
		data: data
	})
}
//后台删除用户信息
export const adminDeleteUser = (data) => {
	return request({
		url: 'admin/adminDeleteUser',
		method: 'get',
		data: data
	})
}
//后台用户管理搜索
export const adminSearchUser = (data) => {
	return request({
		url: 'staff/adminSearchUser',
		method: 'get',
		data: data
	})
}
//后台根据用户注册时间排序
export const adminGetUserRank = (data) => {
	return request({
		url: 'admin/adminGetUserRank',
		method: 'get',
		data: data
	})
}
//后台修改管理员状态
export const adminUpdeteAdminState = (data) => {
	return request({
		url: 'admin/adminUpdeteAdminState',
		method: 'get',
		data: data
	})
}
//后台删除管理员
export const adminDeleteAdmin = (data) => {
	return request({
		url: 'admin/adminDeleteAdmin',
		method: 'get',
		data: data
	})
}
//后台管理员管理搜索
export const adminSearchAdmin = (data) => {
	return request({
		url: 'staff/adminSearchAdmin',
		method: 'get',
		data: data
	})
}
//后台获取管理员列表分类
export const adminGetAdminListByClassify = (data) => {
	return request({
		url: 'admin/adminGetAdminListByClassify',
		method: 'get',
		data: data
	})
}
//后台搜索记录添加
export const adminAddSearch = (data) => {
	return request({
		url: 'staff/adminAddSearch',
		method: 'get',
		data: data
	})
}
//后台查找搜索记录
export const adminGetSearch = (data) => {
	return request({
		url: 'staff/adminGetSearch',
		method: 'get',
		data: data
	})
}
//后台管理员修改密码 判断旧密码是否正确
export const adminGetUserByPwd = (data) => {
	return request({
		url: 'admin/adminGetUserByPwd',
		method: 'get',
		data: data
	})
}
//后台管理员修改密码
export const adminUpdateAdminPwd = (data) => {
	return request({
		url: 'admin/adminUpdateAdminPwd',
		method: 'get',
		data: data
	})
}
//后台删除搜索记录
export const adminDeleteSearch = (data) => {
	return request({
		url: 'staff/adminDeleteSearch',
		method: 'get',
		data: data
	})
}
//后台添加管理员
export const adminAddadmin = (data) => {
	return request({
		url: 'admin/adminAddadmin',
		method: 'get',
		data: data
	})
}
//后台获取管理员信息
export const adminGetadminById = (data) => {
	return request({
		url: 'admin/adminGetadminById',
		method: 'get',
		data: data
	})
}
//后台修改管理员信息
export const adminUpdateAdmin = (data) => {
	return request({
		url: 'admin/adminUpdateAdmin',
		method: 'get',
		data: data
	})
}
//后台获取管理员信息
export const adminGetAdminList = () => {
	return request({
		url: 'admin/adminGetAdminList',
		method: 'get'
	})
}
//后台获取日志列表
export const adminGetLog = (data) => {
	return request({
		url: 'admin/adminGetLog',
		method: 'get',
		data: data
	})
}
//后台日志管理搜索
export const adminSearchLog = (data) => {
	return request({
		url: 'staff/adminSearchLog',
		method: 'get',
		data: data
	})
}
//后台分类获取日志列表
export const adminGetLogClassify = (data) => {
	return request({
		url: 'admin/adminGetLogClassify',
		method: 'get',
		data: data
	})
}
//后台获取家政员列表
export const adminGetHomenakingList = () => {
	return request({
		url: 'staff/adminGetHomenakingList',
		method: 'get'
	})
}
//后台更改家政状态
export const adminUpDateHomemakingState = (data) => {
	return request({
		url: 'staff/adminUpDateHomemakingState',
		method: 'get',
		data: data
	})
}
//后台家政搜索
export const adminSearchHomenaking = (data) => {
	return request({
		url: 'staff/adminSearchHomenaking',
		method: 'get',
		data: data
	})
}
//后台家政分类
export const adminGethomemakingClassify = (data) => {
	return request({
		url: 'staff/adminGethomemakingClassify',
		method: 'get',
		data: data
	})
}
//后台清空日志列表
export const adminDeleteLog = (data) => {
	return request({
		url: 'admin/adminDeleteLog',
		method: 'get',
		data: data
	})
}
//后台管理登录
export const adminLogin = (data) => {
	return request({
		url: 'admin/adminLogin',
		method: 'get',
		data: data
	})
}
//后台根据token获取管理员信息
export const adminGetadminByToken = (data) => {
	return request({
		url: 'admin/adminGetadminByToken',
		method: 'get',
		data: data
	})
}
//上传图片保存到本地uploadImage
export const uploadImage = (data) => {
	return request({
		url: 'state/images',
		method: 'get',
		data: data
	})
}
//测试用户id查询
export const usergetid = (data) => {
	return request({
		url: 'User/usergetid',
		method: 'get',
		data: data
	})
}
//根据家政员id修改预约设置
export const updated = (data) => {
	return request({
		url: 'design/updated',
		method: 'get',
		data: data
	})
}
//根据家政员id显示预约设置的内容
export const showed = (data) => {
	return request({
		url: 'design/showed',
		method: 'get',
		data: data
	})
}
//根据家政员id添加和修改排期时段的内容
export const addition = (data) => {
	return request({
		url: 'design/addition',
		method: 'post',
		data: data
	})
}
//根据家政员id显示排期时段的内容
export const shower = (data) => {
	return request({
		url: 'design/shower',
		method: 'get',
		data: data
	})
}
//根据家政员id显示排期时段的内容
export const shower1 = (data) => {
	return request({
		url: 'design/shower1',
		method: 'get',
		data: data
	})
}
//根据时段id删除排期的时段
export const del = (data) => {
	return request({
		url: 'design/del',
		method: 'get',
		data: data
	})
}
//更改图片路径updataimgpath
export const updataimgpath = (data) => {
	return request({
		url: 'staff/updataimgpath',
		method: 'get',
		data: data
	})
}
//删除图片delimgpaht
export const delimgpaht = (data) => {
	return request({
		url: 'staff/delimgpaht',
		method: 'get',
		data: data
	})
}
//添加到图集addurlpath
export const addurlpath = (data) => {
	return request({
		url: 'urlpath/addurlpath',
		method: 'get',
		data: data
	})
}
//删除图集delurlpath
export const delurlpath = (data) => {
	return request({
		url: 'urlpath/delurlpath',
		method: 'get',
		data: data
	})
}
//显示图片图集路径showurllist
export const showurllist = (data) => {
	return request({
		url: 'urlpath/showurllist',
		method: 'get',
		data: data
	})
}
//根据家政员id登录
export const addlogin = (data) => {
	return request({
		url: 'staffuser/addlogin',
		method: 'get',
		data: data
	})
}
//检查时间段状态mode
export const mode = (data) => {
	return request({
		url: 'time/mode',
		method: 'get',
		data: data
	})
}